﻿@{
    ViewBag.Title = "Solicitud";
    Layout = "~/Views/Shared/LayoutICE.cshtml";
}
@*  <link rel="stylesheet" href="~/Content/themes/smoothness/jquery-ui.css" />
  <script src="~/Scripts/jquery-1.9.1.js"></script>
  <script src="~/Scripts/ui/1.10.3/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css" />
*@


@*  <script>
      $(function () {
          $("#txtDateFrom").datepicker();
          $("#txtDateTo").datepicker();

      });
  </script>*@
@{
    
    ICE.Vacations.Entidades.Recurso usuario = ICE.Vacations.Logica.Users.UsersManager.getRecurso();
    
}



<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />

<div class="intro2">
 <form name="cosa" action=@Url.Action("CrearSolicitud", "Home","Home") method="POST">
     
     <table style="vertical-align: central;" >

    <td width="120px">Usuario:</td> <td width="225px">@Html.TextBox("user",@User.Identity.Name, new { style="width:200px;",@readonly= "readonly" })</td> <tr style="height:50px;" />

    <td width="120px">Cédula:</td> <td width="225px">@Html.TextBox("txtEmployeeID",usuario.cedula, new { style="width:200px;", @readonly= "readonly"})</td> <tr style="height:50px;" />

    <td width="120px">Primer Apellido:</td><td width="225px">@Html.TextBox("txtApellido1",usuario.apellido1, new { style="width:200px;",@readonly= "readonly" })</td> <tr style="height:50px;" />

    <td width="120px">Segundo Apellido:</td> <td width="225px">@Html.TextBox("txtApellido2",usuario.apellido2, new { style="width:200px;",@readonly= "readonly" }) </td><tr style="height:50px;" />

    <td width="120px">Nombre:</td> <td>@Html.TextBox("txtemployeeName",usuario.nombre, new { style="width:200px;",@readonly= "readonly" })</td> <tr style="height:50px;"/>

    <td width="120px">Email:</td> <td width="225px">@Html.TextBox("eMail",usuario.email, new { style="width:200px;"})</td> <tr style="height:50px;"/>

    <td width="120px">Email:</td> <td width="225px">@Html.TextBox("totalAvailableDays","0", new { style="width:200px;"})</td> <tr style="height:50px;"/>
    
    <td width="120px">CódigoCentro funcional:</td> <td width="25px"> @Html.TextBox("txtcodCF",usuario.cod_cf, new { style="width:20px;" })   @Html.TextBox("txtcodDireccion","", new { style="width:50px;" }) </td>   <tr style="height:50px;"/>
    
    <td width="120px">Año:</td> <td width="225px">@Html.TextBox("year",@DateTime.Now.Year, new { style="width:50px;",@readonly= "readonly" })</td> <tr style="height:50px;"/>

    <td width="120px">Fecha:</td> <td>@Html.TextBox("txtDate",@DateTime.Now.ToString("MM/dd/yyyy"), new { style="width:200px;" , @readonly= "readonly"})</td>  <tr style="height:50px;"/>

    <td width="120px">Fecha Inicio:</td> <td width="225px">@Html.TextBox("txtDateFrom","", new { style="width:200px;" })</td> <tr style="height:50px;"/>

    <td width="120px">Fecha Fin:</td> <td width="225px">@Html.TextBox("txtDateTo","", new { style="width:200px;"})</td> <tr style="height:50px;"/>

    <td width="120px">Comentarios:</td><td width="225px">@Html.TextArea("comments","", new { style="width:300px;height:100px"})</td> <tr style="height:100px;" />
    <td width="120px">Jefe:</td><td width="225px">@Html.TextBox("managerID",usuario.aprobador1, new { style="width:200px;",@readonly= "readonly" })</td> <tr style="height:50px;"/>
    <td width="120px">Tipo:</td><td width="225px">@Html.TextBox("tipo",usuario.tipo, new { style="width:200px;",@readonly= "readonly" })</td><tr style="height:50px;"/>
    
         </table>
        
                       
    <input type="submit" style="margin-left:120px" value="Salvar Solicitud" style="width:250px"/>

     <br />
     
     <br />
     <br />
     <br />

     
</form>
    </div>